x11: Don't warn if the display is closed
authorMatthias Clasen <mclasen@redhat.com>
Wed, 30 Nov 2016 18:43:17 +0000 (13:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 30 Nov 2016 18:45:00 +0000 (13:45 -0500)
This causes a storm of warnings from all applications in the logs
whenever the display goes away, and is not useful.

gdk/x11/gdkmain-x11.c

index 124a2863722bcc845b1d0dc143efb8c1d21d3420..7671f24448d22b674edb2ffd9b77f3b5c4ace0ba 100644 (file)
@@ -239,7 +239,7 @@ gdk_x_io_error (Display *display)
    */
   if (errno == EPIPE)
     {
-      g_warning ("The application '%s' lost its connection to the display %s;\n"
+      g_message ("The application '%s' lost its connection to the display %s;\n"
                  "most likely the X server was shut down or you killed/destroyed\n"
                  "the application.\n",
                  g_get_prgname (),
@@ -247,7 +247,7 @@ gdk_x_io_error (Display *display)
     }
   else
     {
-      g_warning ("%s: Fatal IO error %d (%s) on X server %s.\n",
+      g_message ("%s: Fatal IO error %d (%s) on X server %s.\n",
                  g_get_prgname (),
                  errno, g_strerror (errno),
                  display ? DisplayString (display) : gdk_get_display_arg_name ());